package cn.china.feign.myfeign;


import cn.china.feign.hytrixback.HytrixBack;
import com.netflix.hystrix.contrib.javanica.annotation.HystrixCommand;
import com.netflix.hystrix.contrib.javanica.annotation.HystrixProperty;
import entity.Student;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;

@FeignClient(value = "service1",fallback = HytrixBack.class)
public interface StudentFeign {
    @RequestMapping(value = "/insert",produces = "application/json;charset=utf-8")
    public int insert(Student student);

    @RequestMapping(value = "/showInfo",produces = "application/json;charset=utf-8")
    public Student showInfo();






}
